import request from '@/utils/request'
// 查询分组信息树
export const getfenzulistapi = () => request.get('sst-microservice-biz/sst/check/rules/set/group/list')
// 新增分组
export const postaddenzuapi = data => request.post('sst-microservice-biz/sst/check/rules/set/group/add', data)
// 修改分组
export const postupdatefenzuapi = data => request.post('sst-microservice-biz/sst/check/rules/set/group/update', data)
// 删除分组
export const postdelfenzuapi = groupCode => request.post(`sst-microservice-biz/sst/check/rules/set/group/delete?groupCode=${groupCode}`)
// 查询规则
export const getguizelistapi = params => request.get('sst-microservice-biz/sst/check/rules/set/list', { params })
// 删除规则
export const postdelguizeapi = ruleCode => request.post(`sst-microservice-biz/sst/check/rules/set/delete?ruleCode=${ruleCode}`)
// 新增规则
export const postaddguizeapi = data => request.post('sst-microservice-biz/sst/check/rules/set/add', data)
// 修改规则
export const postupdateguizeapi=data=>request.post('sst-microservice-biz/sst/check/rules/set/update',data)

// 数据检查订阅查询列表
export const getdingyuelistapi = params => request.get('sst-microservice-biz/sst/data/check/set/list', { params })
// 新增订阅
export const getpostadddingyueapi = data => request.post('sst-microservice-biz/sst/data/check/set/add', data)
// 编辑订阅
export const postupdatedingyueapi = data => request.post('sst-microservice-biz/sst/data/check/set/update', data)
// 删除订阅
export const postdeldingyueapi=manageNo =>request.post(`sst-microservice-biz/sst/data/check/set/delete?manageNo=${manageNo}`)